function create_share_url(obj,type,title,url,content)
{
    var url;
    switch(type)
    {
    	case 'taobao':
    	url="http://share.jianghu.taobao.com/share/addShare.htm?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(url)+"&content=";
        break;
		case 'baidu':
    	url="http://cang.baidu.com/do/add?iu="+encodeURIComponent(url)+"&&dc=&fr=ien&it="+encodeURIComponent(title);
        break;
		case 'qq':
    	url="http://shuqian.qq.com/post?from=3&uri="+encodeURIComponent(url)+"&jumpback=1&noui=1&title="+encodeURIComponent(title);
        break;
		case 'sina':
    	//url="http://v.t.sina.com.cn/share/share.php?url="+encodeURIComponent(url)+"&appkey=2619491550&title="+encodeURIComponent(title)+"&content=utf-8";
		url="http://v.t.sina.com.cn/share/share.php?url="+encodeURIComponent(url)+"&appkey=2808608393&title="+encodeURIComponent(title)+"&content=utf-8";
		break;
		case 'renren':
    	url="http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);
        break;
		case 'kaixin':
    	url="http://www.kaixin001.com/repaste/share.php?rurl="+encodeURIComponent(url)+"&rtitle="+encodeURIComponent(title)+"&rcontent=";
        break;
		case 'google':
    	url="http://www.google.com/bookmarks/mark?op=add&bkmk="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);
        break;
		case 'douban':
    	url="http://www.douban.com/recommend/?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title);
        break;
		case 'qq_onekey':
		var _t = encodeURI(title);
		var _url = encodeURIComponent(url);
		var _appkey = encodeURI("");//你从腾讯获得的appkey
		var _pic = encodeURI('');//（列如：var _pic='图片url1|图片url2|图片url3....）
		var _site = '';//你的网站地址
		url = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
		break;
    }
    obj.href=url;
}

function addfav(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
} 